package com.bw.finance.eneity.es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;

@Data
@Document(indexName = "finance_edu",type="_doc",shards = 1,replicas = 0)
public class BorrowBiao {

    @Id
    private String id;

    @Field(type = FieldType.Text,analyzer = "ik_max_word",searchAnalyzer = "ik_smart")
    private String bidName;

    @Field(type = FieldType.Short)
    private Integer bidType;

    @Field(type = FieldType.Double)
    private BigDecimal totalAmount;

    @Field(type = FieldType.Double)
    private BigDecimal interest;//年利率

    @Field(type = FieldType.Short)
    private Integer tremType;//期限类型

    @Field(type = FieldType.Double)
    private Integer trem;//期限

    @Field(type = FieldType.Short)
    private Integer repayType;//还款类型

    @Field(type = FieldType.Double)
    private BigDecimal raiseAmount;//募集金额

}
